package com.moke.json
{
	public class JSONParseError extends Error
	{
		/** The location in the string where the error occurred */
		private var _location:int;
		/** The string in which the parse error occurred */
		private var _text:String;
		
		public function JSONParseError(message:String = "",location:int = 0,text:String = "")
		{
			super(message);
			name = "JSONParseError";
			_location = location;
			_text = text;
		}
		
		public function get location():int
		{
			return _location;
		}
		
		public function get text():String
		{
			return _text;
		}
	}
}